import { $t } from "@/plugins/i18n";
// import { training } from "@/router/enums";
const { VITE_HIDE_HOME } = import.meta.env;
const Layout = () => import("@/layout/index.vue");

export default {
  path: "/training",
  name: "Training",
  component: Layout,
  redirect: "/training/list",
  meta: {
    icon: "ri:graduation-cap-line",
    title: $t("menus.hsTraining"),
    rank: 3
  },
  children: [
    {
      path: "/training/list",
      name: "TrainingList",
      component: () => import("@/views/training/list/index.vue"),
      meta: {
        title: $t("menus.hsTrainingList"),
        roles: ["admin", "operator"]
      }
    },
    {
      path: "/training/form",
      name: "TrainingForm",
      component: () => import("@/views/training/form/index.vue"),
      meta: {
        title: $t("menus.hsTrainingForm"),
        showLink: false,
        roles: ["admin", "operator"]
      }
    },
    {
      path: "/training/detail",
      name: "TrainingDetail",
      component: () => import("@/views/training/detail/index.vue"),
      meta: {
        title: $t("menus.hsTrainingDetail"),
        showLink: false,
        roles: ["admin", "operator"]
      }
    },
    {
      path: "/training/student",
      name: "TrainingStudent",
      component: () => import("@/views/training/student/index.vue"),
      meta: {
        title: $t("menus.hsTrainingStudent"),
        roles: ["admin", "operator"]
      }
    },
    {
      path: "/training/enrollment",
      name: "TrainingEnrollment",
      component: () => import("@/views/training/enrollment/index.vue"),
      meta: {
        title: $t("menus.hsTrainingEnrollment"),
        roles: ["admin", "operator"]
      }
    }
  ]
} as RouteConfigsTable;